﻿function test(editId) {
    var editElement = editId;
    var idElement = editElement.id;

    var grv = '<%= gv.ClientID %>';
    // var parentNode = editElement.parent().attr("id");

    var tmp = $("#" + idElement).parent().parent().children();
    // $("#myModalLabel").html(grv + " ##### " + editElement.id + " @@@ ");

    // sau khi lay duoc cac phan tu con tuong ung thi lap roi thiet lap gia tri cho no
    $("#myModalLabel").html(tmp[1].textContent);
    $("#modal-body-tieude").val(tmp[2].textContent);
    $("#modal-body-mota").val(tmp[3].textContent);
}

function processVyc00(nameProcess, paramId, paramName, paramDes, paramStatus) {
    var _id = paramId.ID;
    var _url = "/ajaxProcessAddUpdateVyc00.aspx";
    var pVyc00Data = { "Id": paramId, "Name": paramName, "Status": paramStatus };
    $.ajax({
        url: _url,
        type: "Post",
        data: pVyc00Data,
        success: function (data) {
            alert(data);
        }
    });
}